package com.flashmoment.video.dao;

import com.flashmoment.video.entity.VideoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 视频表
 * 
 * @author xulu
 * @email 1435533194@qq.com
 * @date 2023-10-24 16:35:33
 */
@Mapper
public interface VideoDao extends BaseMapper<VideoEntity> {


    List<VideoEntity> findVideoById(@Param("id")Integer id);

    List<VideoEntity> findMyWorksByUserId(@Param("id") Integer id);

    //我的点赞
    List<VideoEntity> findMyLikesByUserId(@Param("id") Integer id);
    //我的收藏
    List<VideoEntity> findMyCollectByUserId(@Param("id") Integer id);
    //分享
    List<VideoEntity> findMyShareByUserId(@Param("id") Integer id);

    List<String> findSelectCollectByUserId(long id);
}
